package com.wang.spring.basic_di.g_complexfield.bean;

import org.springframework.stereotype.Component;


/**
 * 注解复杂注入 就是用注解的方式类注入复杂的属性
 */
@Component("miaomiao")
public class Cat1 {
    private String name = "cat1";

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Cat1{" +
                "name='" + name + '\'' +
                '}';
    }
}
